﻿import QtQuick 2.0
import QtWebKit 3.0
import QtQuick.Controls 1.4
import QtQuick.Window 2.2

Item {
    id: root
//    width: Screen.width
//    height: Screen.height

    Component.onCompleted: {
        console.log(Screen.width,Screen.height)
    }
    Rectangle{
        anchors.fill: parent
        color: "red"
    }
    Text {
        id: name
        text: qsTr("QML")
    }


//    WebView{
//        id: webview
//        width: parent.width
//        height: parent.height

//        url: "file:///" + widget.getCurrentPath() + "/index.html"    //"http://www.baidu.com" //

//        onLoadProgressChanged: {
//            console.log("loadProgress",loadProgress)
////                name.text = "loadProgress: " + loadProgress
//        }
//        onLoadingChanged: {
//            console.log("(loading)",loading)
//        }
//        onLinkHovered: {
//            console.log("onLinkHovered ",hoveredUrl, hoveredTitle)
//        }
//    }
}
